
FROM openjdk:8-alpine

ENV TZ=Asia/Shanghai

COPY canal.admin-1.1.5.tar.gz /tmp

RUN mkdir -p /canal-admin \
  && tar xvf /tmp/canal.admin-1.1.5.tar.gz -C /canal-admin \
  && apk add --no-cache bash \
  && rm -rf /tmp/*

WORKDIR /canal-admin

CMD ["java", "-version"]
